package com.ps.dao.setting;

import java.sql.Timestamp;
import java.util.List;
import org.hibernate.LockMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ps.dao.BaseDaoSupport;
import com.ps.pojo.setting.RoleOfPermission;

/**
 * A data access object (DAO) providing persistence and search support for
 * RoleOfPermission entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see com.ps.pojo.setting.RoleOfPermission
 * @author MyEclipse Persistence Tools
 */

public class RoleOfPermissionDAO extends BaseDaoSupport<RoleOfPermission> {

	// property constants
	public static final String ROLE_ID = "roleId";
	public static final String PERMISSION_ID = "permissionId";
	public static final String INPUTER_ID = "inputerId";


	public static RoleOfPermissionDAO getFromApplicationContext(
			ApplicationContext ctx) {
		return (RoleOfPermissionDAO) ctx.getBean("RoleOfPermissionDAO");
	}
}